import Vue from 'vue'
import Router from 'vue-router'
import pos from '@/components/pages/pos' //配置路由
import hi from '@/components/pages/HelloWorld' //配置路由hi 组件
import hi1 from '@/components/pages/HelloWorld1' //配置路由hi 组件

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'pos',
      component: pos
    },
    {
      path: '/hi',
      name: 'hi',
      component: hi
    },
    {
      path: '/hi1/:id',
      name: 'hi1',
      component: hi1
    }
  ]
})
